package com.wish.g01.base.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 风控公寓授信子表
 * </p>
 *
 * @author hao
 * @since 2022-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_fk_business_credit_sub")
public class FkBusinessCreditSub implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联t_fk_business_credit
     */
    private Long creditId;

    /**
     * 资金方id，关联t_m_capital表
     */
    private Long capitalId;

    /**
     * 产品id，关联t_jr_product，取产品的授信额度
     */
    private Long productId;

    /**
     * 总授信额度
     */
    private BigDecimal totalCreditline;

    /**
     * 已用授信额度
     */
    private BigDecimal usedCreditline;

    /**
     * 月度授信额度
     */
    private BigDecimal monthlyTotalCreditline;

    /**
     * 月度已用授信额度
     */
    private BigDecimal monthlyUsedCreditline;

    /**
     * 资金方识别码
     */
    private String appid;

    /**
     * 预留字段1
     */
    private BigDecimal reserve1;

    /**
     * 预留字段2
     */
    private Integer reserve2;

    /**
     * 预留字段3
     */
    private String reserve3;

    /**
     * 预留字段4
     */
    private String reserve4;

    /**
     * 预留字段5
     */
    private String reserve5;

    /**
     * 删除标识   0：未删除、1：删除
     */
    private Boolean delFlg;

    /**
     * 创建用户id
     */
    private Long createUserid;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新用户id
     */
    private Long updateUserid;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
